import moduleRouter from "./modules";
import mainIndex from "@/components/mainIndex";
// 除菜单之外的路由
const otherRouter = [
  {
    path: "/mainIndex",
    component: mainIndex,
    meta: {
      title: "快速开发技术中台"
    },
    children: []
  },
  {
    path: "/",
    component: mainIndex,
    meta: {
      title: "快速开发技术中台"
    },
    redirect: "/reception"
  },
  // {
  //   path: "/",
  //   meta: {
  //     title: "登录"
  //   },
  //   redirect: "/login"
  // },
  {
    path: "/login",
    component: () => import("@/components/login"),
    meta: {
      title: "登录"
    }
  }
];
var allModules = otherRouter.concat(moduleRouter).concat({
  path: "*",
  redirect: "/"
});
export default allModules;
